ad.gol.draw          	      package:adGol        		        R Documentation

Graphical Display of Binary Matrix

Description:

	A function that plots a graphical representation of a binary matrix with the numerical elements 0 and 1.

Usage:

	ad.gol.draw(mat, main)

	## Default method:
	ad.gol.draw(mat, main = "")

Arguments:

	mat:  a binary matrix with values 0 and 1 which is the initial state. The dimensions of the matrix must be strictly positive.

	main:  the title of the frame in a string format.

Details:

	The zeros are plotted in green color and the ones are plotted in black color. The default background is white and it may be setted with a previous call x11(bg = desiredColor).

Value:

	This function has no return value.

Author(s):

	Ademar Marques Lacerda Filho

See Also:

	'ad.gol'.

Examples:
	
	# Draws a binary matrix and sets the title to Faces
	ad.gol.draw(ad.radial, "Faces")

	# Draws the last state of the celullar tissue in a simulation by ad.gol()
	x = ad.gol(ad.random, graphics = FALSE, text = FALSE, SLEEP = NULL, it = 100)
	ad.gol.draw(x)
